package com.flying.acls.domain.permission;

import com.flying.acls.model.PermsExpr;
import com.flying.acls.model.PermsType;

public class CrudPermsExpr extends PermsExpr{
    // CURD related permissions.
    public static final PermsExpr CREATE = PermsExprFactory.get(PermsType.CRUD, 1);            // 1
    public static final PermsExpr READ = PermsExprFactory.get(PermsType.CRUD, 1 << 1);         // 2
    public static final PermsExpr UPDATE = PermsExprFactory.get(PermsType.CRUD, 1 << 2);       // 4
    public static final PermsExpr DELETE = PermsExprFactory.get(PermsType.CRUD, 1 << 3);       // 8
    public static final PermsExpr ADMIN = PermsExprFactory.get(PermsType.CRUD, 1 << 4);        // 16
}
